package com.wpen.unit.commun;

import java.io.Serializable;

import javax.validation.constraints.Min;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
public class PageRequest extends BaseRequest implements Serializable {
    private static final long serialVersionUID = -3953998082532445645L;

    @Schema(description =  "页码", required = true)
    @Min(1)
    private int page = 1;
    @Schema(description =  "条数", required = true)
    @Min(1)
    private int size = 10;
    /*数据库使用，接口无用*/
    @Schema(hidden = true)
    private int index = 0;

}
